<div class="panel panel-default">

<div class=" panel-heading">Works</div>
<div class="panel-body">
<a class="btn btn-danger btn-sm pull-right" href="<?=site_url('catalog/works')?>"><i class="glyphicon glyphicon-ban-circle"></i> <?=nbs(1)?> Cancel</a>
</div>
	
</div>
<div class="row">
	<div class="col-md-6">
	<form class="form" role="form" method="post" action="">

			<div class="form-group">
			<label>Activity</label>
			<select class="form-control" name="active">
				<option value="1">active</option>
				<option value="0">désactivé</option>
			</select>
		</div>
			<div class="form-group">
			<label>Customer</label>
			<select class="form-control" name="customer_id">
			<option value="0">Choose a customer</option>
			<?php foreach ($customers as $c):?>
				<option value="<?=$c->id?>"><?=$c->name?></option>
			<?php endforeach;?>
			</select>
		</div>
		<div class="form-group">
			<label>Name:</label>
			<input class="form-control" type="text" name="name" value="" required autofocus>
		</div>
		
		<div class="form-group">
			<label>Short description:</label>
			<input class="form-control" type="text" name="description" value="" >
		</div>
		<button type="submit" class="btn btn-primary pull-right">Save</button>
		</form>
	</div>
</div>

		




